package iotas

/** 定义用户状态枚举 */
type UserState int

const (
	Normal UserState = iota
	Freeze
	Stop
)

// 枚举值转字符串
func (s UserState) String() string {
	switch s {
	case Normal:
		return "正常"
	case Freeze:
		return "冻结"
	case Stop:
		return "停用"
	default:
		return "未知"

	}
}
